/*
 * 
 * Copyright (C) 2010 Wilfried Elmenreich, Anita Sobe 
 * This file is part of VideoNetwork.
 * 
 * VideoNetwork is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. 
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 
 * You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>. 
 */
package proxy;


public class Link {

	private ServerNode targetNode;
	private double occupiedUntil;
	private double datarate;	// datarate in bytes/sec
	
	public ServerNode getTargetNode() {
		return targetNode;
	}

	public double getOccupiedUntil() {
		return occupiedUntil;
	}
	
	public void addOccupiedUntil(double value){
		occupiedUntil+=value;
	}

	public void setOccupiedUntil(double value){
		occupiedUntil=value;
	}
	
	public double getDatarate() {
		return datarate;
	}

	public Link(ServerNode targetNode, double datarate) {
		this.targetNode=targetNode;
		this.datarate=datarate;
		occupiedUntil=0.0;
	}
	
	
	
}
